package com.bean.entity;


import com.bean.annotation.Id;
import com.bean.annotation.Table;
import com.bean.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.io.Serializable;
import java.time.LocalDateTime;



@Data
@EqualsAndHashCode(callSuper = false)
@Table(comment = "公众号表")
public class OfficialAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公众号id
     */
    @Id
    @TableField(comment = "公众号id")
    private Integer id;

    /**
     * 公众号名称
     */
    @TableField(comment = "公众号名称",length = 20,notNull = true)
    private String name;

    /**
     * 描述
     */
    @TableField(comment = "描述",length = 1000)
    private String description;

    /**
     * 微信号名称
     */
    @TableField(comment = "微信号名称",length = 50,notNull = true)
    private String wxAlias;

    /**
     * 公众号标识
     */
    @TableField(comment = "公众号标识",length = 50,notNull = true)
    private String fakeid;

    /**
     * 类型
     */
    @TableField(comment = "类型",length = 1,defaultValue = "0")
    private String type;

    /**
     * 认证状态:0：未认证，1：已认证
     */
    @TableField(comment = "认证状态",length = 1,defaultValue = "0")
    private Integer isVerified;

    /**
     * 省
     */
    @TableField(comment = "省",length = 10)
    private String province;

    /**
     * 市
     */
    @TableField(comment = "市",length = 10)
    private String city;

    /**
     * 县/区域
     */
    @TableField(comment = "县/区域",length = 10)
    private String area;

    /**
     * 街道
     */
    @TableField(comment = "街道",length = 10)
    private String street;

    /**
     * 公众号appid
     */

    @TableField(comment = "公众号appid",length = 20,notNull = true)
    private String appid;

    /**
     * 公众号密钥
     */
    @TableField(comment = "公众号密钥",length = 50)
    private String appsecret;

    /**
     * 接口调用凭据:有效性2小时
     */
    @TableField(comment = "接口调用凭据:有效性2小时",length = 100)
    private String accessToken;

    /**
     * 排序
     */
    @TableField(comment = "排序",length = 100,defaultValue = "10")
    private Integer seq;

    /**
     * logo链接
     */
    @TableField(comment = "logo链接",length = 100)
    private String logoUrl;

    /**
     * 链接
     */
    @TableField(comment = "链接",length = 100)
    private String url;

    /**
     * 状态：0、有效；1、删除
     */
    @TableField(comment = "链接",length = 100,defaultValue = "0")
    private Integer status;

    /**
     * 创建时间
     */

    @TableField(comment = "创建时间",defaultValue = "now()")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(comment = "更新时间",defaultValue = "now()")
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    @TableField(comment = "备注",length = 2000)
    private String remark;


}

